package ifips.s7.modele;

import java.util.ArrayList;

public class Transition_turing {
	

    protected Etat_Turing Depart;
    protected String lettre;
	protected boolean direction;
	protected String lettre2;
    protected Etat_Turing Arrivee;
	
	public Transition_turing ( Etat_Turing E1, String lettre, boolean sens, String nvle_lettre, Etat_Turing E2){
	        
	    	this.Depart = E1;
	    	this.lettre = lettre;
	        this.direction=sens;
	        this.lettre2 = nvle_lettre;
	        this.Arrivee = E2;
	    };

    public boolean getDirection(){
    	
    	return this.direction;
    	
    }
    
    public String getnvleLettre(){
    	
    	return this.lettre2;
    	
    }
    
    Etat_Turing getDepart(){
        return Depart;
    }

    Etat_Turing getArrivee(){
        return Arrivee;
    }
    
    String getLettre(){
        return lettre;
    }
    
    public void print(){
    	String dir= "G";
    	if(direction)dir="D";
    	System.out.println(Depart.getId()+"\t"+lettre+"\t"+dir+"\t"+lettre2+"\t"+Arrivee.getId());
    }
}
